/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package afroschool.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author AUTRES
 */
@Entity
@Table(name = "typeevaluation")
@NamedQueries({@NamedQuery(name = "Typeevaluation.findById", query = "SELECT t FROM Typeevaluation t WHERE t.id = :id"), @NamedQuery(name = "Typeevaluation.findByCodetype", query = "SELECT t FROM Typeevaluation t WHERE t.codetype = :codetype"), @NamedQuery(name = "Typeevaluation.findByDescription", query = "SELECT t FROM Typeevaluation t WHERE t.description = :description"), @NamedQuery(name = "Typeevaluation.findByModesaisienote", query = "SELECT t FROM Typeevaluation t WHERE t.modesaisienote = :modesaisienote")})
public class Typeevaluation implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "id", nullable = false)
    private Integer id;
    @Column(name = "codetype")
    private String codetype;
    @Column(name = "description")
    private String description;
    @Column(name = "modesaisienote")
    private String modesaisienote;

    public Typeevaluation() {
    }

    public Typeevaluation(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCodetype() {
        return codetype;
    }

    public void setCodetype(String codetype) {
        this.codetype = codetype;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getModesaisienote() {
        return modesaisienote;
    }

    public void setModesaisienote(String modesaisienote) {
        this.modesaisienote = modesaisienote;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Typeevaluation)) {
            return false;
        }
        Typeevaluation other = (Typeevaluation) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "afroschool.beans.Typeevaluation[id=" + id + "]";
    }

}
